package com.mooc.yohoshop.ui.detail;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.mooc.yohoshop.R;
import com.mooc.yohoshop.entity.DetailEntity;
import com.mooc.yohoshop.imgload.ImageLoad;

import org.jetbrains.annotations.NotNull;

public class DetailImgAdapter extends BaseQuickAdapter<DetailEntity.ImgValues, BaseViewHolder> {
    public DetailImgAdapter() {
        super(R.layout.item_goods_img);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, DetailEntity.ImgValues imgValues) {
        ImageLoad.loadMatch(imgValues.goods_img_path,baseViewHolder.getView(R.id.values_vp_img));
    }
}
